package com.hyl.crmclient.service;

import com.hyl.jpademo.dao.SysRightResposity;
import com.hyl.jpademo.entity.Right;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2022/6/14 15:50
 **/
@Service("rightService")
public class RightServiceImpl implements  RightService {

	@Autowired
	SysRightResposity rightResposity;

	@Override
	public List<Right> findAll() {
		return rightResposity.findAll();
	}

	@Override
	public List<Right> findByRoleid(Integer roleid) {
		return rightResposity.findByRoleId(roleid);
	}
}
